package com.leio.learn;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

import com.leio.R;

public class RedirectActivity extends Activity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.redirectlayout1);
		Button button = (Button) findViewById(R.id.nextPage);
		TextView tv = (TextView) findViewById(R.id.firstView);
		tv.setTextColor(getResources().getColor(R.drawable.green));
		button.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(RedirectActivity.this,
						RedirectNextActivity.class);
				startActivity(intent);
				RedirectActivity.this.finish();
			}
		});

	}
}
